<?php if(isset($pagination) && $pagination['nbPages'] > 1) : ?> 
      <ul class="pagination">
<?php foreach($pagination['pages'] as $page) : ?>
        <li <?php if($page == $pagination['currentPage']) echo "class='active'"; ?>>
          <a href="http://<?php echo $this->getUrlWithParams($this->getCurrentUrl(), array('page' => $page)); ?>" title="Aller à la page <?php echo $page; ?>"><?php echo $page; ?></a>
        </li>
<?php endforeach; ?>
        <li>Total : <?php echo $pagination['nbPages']; ?> pages</li>
      </ul>

<?php endif; ?>
